module.exports = async (ctx, next) => {
  const ip = ctx.ip.match(/\d+.\d+.\d+.\d+/) // ipv4

  const originUrl = ctx.originalUrl
  const xpath = ctx.path
  if (originUrl != '/favicon.ico')
    console.log(`origin:${originUrl}  ip:${ip}   path:${xpath}`)

  await next()
}
//